#!/bin/bash

# usage: 

>results.log

# stream = 1
for((buf=10; buf<=10000000; buf*=10))
do
	for((k=1; k<=512; k*=2))
	do
		for((N=1000; N<=100000000; N*=10))
		do
			make cleandata
			make cleanresult
			./randomN.out $N $k
			./streams.out $k $N ${buf} 1 >> results.log 2>&1
		done
	done
done

make cleandata
make cleanresult
